import {
	request
} from '../request.js'

const getCJCounts = () => {
	return request({
		url: '/cj_task/mb_task_status_count',
		method: 'get'
	})
}

const getCJlist = (taskStatus) => {
	return request({
		url: `/cj_task/mb_list_by_task_status/${taskStatus}`,
		method: 'get'
	})
}

const getTaskDetail = (id) => {
	return request({
		url: `/cj_task/mb_get_task_info/${id}`,
		method: 'get'
	})
}

const getYearColumns = () => {
	return request({
		url: '/cj_task/mb_years',
		method: 'get'
	})
}

const getLocations = (params) => {
	return request({
		url: '/cj_task/list',
		method: 'get',
		data: params
	})
}

const CjTaskApi = {
	getCJCounts,
	getCJlist,
	getTaskDetail,
	getYearColumns,
	getLocations
}

export default CjTaskApi;